#include <QtGui>
#include <QWidget>
#include <QToolBar>
#include "graphwid.h"
#include "scroll.h"
#include "calendar.h"

class GraphWin : public QWidget
{
  Q_OBJECT
    
 public:
  GraphWin(QWidget * parent = 0, Qt::WindowFlags f = 0);
  void setData(DataHRM *data);

 public slots:
  void setCalWid();
  void setGraphWid();
  void cronoChange(int);
  
 protected:
  void closeEvent(QCloseEvent *);
  
 private slots:
  void info();
  void about();
  void open();
  void print();

 private:
  QVBoxLayout* createIcons();
  void createCalendar();
  void createActions(); 
  
  Scroll *scrollArea;
  GraphWid *gw;
  Calendar *calWid;
  QStackedWidget *pagesWidget;
  QMenuBar *menuBar;
  QMenu *fileMenu;
  QAction *aboutAct;
  QAction *openAct;
  QAction *printAct;
  QAction *quitAct;
  QGroupBox *misBox;
  QPushButton *playButton;
  QLabel *hrLabel;
  QLabel *speedLabel;
  QLabel *altLabel;
  QLabel *crono;
  QGroupBox *graphBox;

};
